package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DtQuestionLogMapper;
import com.ruoyi.system.domain.DtQuestionLog;
import com.ruoyi.system.service.IDtQuestionLogService;

/**
 * 党统问题日志Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-25
 */
@Service
public class DtQuestionLogServiceImpl implements IDtQuestionLogService 
{
    @Autowired
    private DtQuestionLogMapper dtQuestionLogMapper;

    /**
     * 查询党统问题日志
     * 
     * @param id 党统问题日志主键
     * @return 党统问题日志
     */
    @Override
    public DtQuestionLog selectDtQuestionLogById(String id)
    {
        return dtQuestionLogMapper.selectDtQuestionLogById(id);
    }

    /**
     * 查询党统问题日志列表
     * 
     * @param dtQuestionLog 党统问题日志
     * @return 党统问题日志
     */
    @Override
    public List<DtQuestionLog> selectDtQuestionLogList(DtQuestionLog dtQuestionLog)
    {
        return dtQuestionLogMapper.selectDtQuestionLogList(dtQuestionLog);
    }

    /**
     * 新增党统问题日志
     * 
     * @param dtQuestionLog 党统问题日志
     * @return 结果
     */
    @Override
    public int insertDtQuestionLog(DtQuestionLog dtQuestionLog)
    {
        return dtQuestionLogMapper.insertDtQuestionLog(dtQuestionLog);
    }

    /**
     * 修改党统问题日志
     * 
     * @param dtQuestionLog 党统问题日志
     * @return 结果
     */
    @Override
    public int updateDtQuestionLog(DtQuestionLog dtQuestionLog)
    {
        return dtQuestionLogMapper.updateDtQuestionLog(dtQuestionLog);
    }

    /**
     * 批量删除党统问题日志
     * 
     * @param ids 需要删除的党统问题日志主键
     * @return 结果
     */
    @Override
    public int deleteDtQuestionLogByIds(String[] ids)
    {
        return dtQuestionLogMapper.deleteDtQuestionLogByIds(ids);
    }

    /**
     * 删除党统问题日志信息
     * 
     * @param id 党统问题日志主键
     * @return 结果
     */
    @Override
    public int deleteDtQuestionLogById(String id)
    {
        return dtQuestionLogMapper.deleteDtQuestionLogById(id);
    }
}
